﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DJY.Domain.ViewModel
{
    /// <summary>
    /// 分页数据
    /// </summary>
    public class PagedResult
    {
        /// <summary>
        /// 总页码
        /// </summary>
        public int total { get; set; }

        /// <summary>
        /// 记录总数
        /// </summary>
        public int records { get; set; }

        /// <summary>
        /// 当前页
        /// </summary>
        public int page { get; set; }

        /// <summary>
        /// 记录行
        /// </summary>
        public object rows { get; set; }

        public object userData { get; set; }

        /// <summary>
        /// 空数据
        /// </summary>
        public static PagedResult Empty
        {
            get
            {
                return new PagedResult();
            }
        }
    }
}
